4070729afd9f25147dcca4e10fafe36cb6a5b811,portal-impl/src/com/liferay/portlet/bookmarks/service/impl/BookmarksFolderLocalServiceImpl.java,BookmarksFolderLocalServiceImpl,moveDependentToTrash,#List#,689
Before Change
assetEntryLocalService.updateVisible(
BookmarksEntry.class.getName(), entry.getEntryId(), false);
if (entry.getStatus() == WorkflowConstants.STATUS_PENDING) {
entry.setStatus(WorkflowConstants.STATUS_DRAFT);
bookmarksEntryPersistence.update(entry);
After Change
continue;
}
int oldStatus = entry.getStatus();
entry.setStatus(WorkflowConstants.STATUS_IN_TRASH);
bookmarksEntryPersistence.update(entry);
// Asset
assetEntryLocalService.updateVisible(
BookmarksEntry.class.getName(), entry.getEntryId(), false);
// Trash
int status = oldStatus;
if (oldStatus == WorkflowConstants.STATUS_PENDING) {
status = WorkflowConstants.STATUS_DRAFT;
}
if (oldStatus != WorkflowConstants.STATUS_APPROVED) {
trashVersionLocalService.addTrashVersion(
trashEntryId, BookmarksEntry.class.getName(),
entry.getEntryId(), status);